package com.evil.activiti.cmd;

import org.activiti.engine.impl.interceptor.Command;
import org.activiti.engine.impl.interceptor.CommandContext;
import org.activiti.engine.impl.persistence.entity.ExecutionEntityManager;

/**
 * 获取ExecutionEntityManager
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
public class GetExecutionEntityManagerCmd implements Command<ExecutionEntityManager> {

    @Override
    public ExecutionEntityManager execute(CommandContext commandContext) {
        return commandContext.getProcessEngineConfiguration().getExecutionEntityManager();
    }
}
